#pragma once

#include "Macros.h"

class CoordSys
{
public:
	static DLLEXPIMP void CleanStatus();

	static DLLEXPIMP void Earth2Screen(double ex, double ey, int& cx, int& cy);

	static DLLEXPIMP void SetZoomFactor(int zoom);
	static DLLEXPIMP void SetEarthCenter(double ex, double ey);
	static DLLEXPIMP void SetWindowRect(int left, int right, int top, int bottom);

	static DLLEXPIMP bool InRect(double ex, double ey);
	static DLLEXPIMP void Longlat2UTM(double longitude, double latitude, double &x, double &y);
private:
	static int			m_zoom;
	static double		m_eCenterX;
	static double		m_eCenterY;
	static int			m_cLeft, m_cRight, m_cTop, m_cBottom;
};

